package cn.edu.zafu.bigdata.liuwenyi;

public class Course {
    //课程属性
    private final String courseId;
    private final String courseName;
    private final int credits;
    private final String teacher;



    public Course(String couresId, String courseName, int credits, String teacher) {
        this.courseId = couresId;
        this.courseName = courseName;
        this.credits = credits;
        this.teacher = teacher;

    }
    public void printCourseInfo(){
        System.out.println("课程编号：" + courseId );
        System.out.println("课程名称：" + courseName);
        System.out.println("学分：" + credits );
        System.out.println("课程教师: "+ teacher );
    }

    public static void main(String[] args) {
        Course c = new Course("CS202", "JAVA", 4, "吴老师");

        c.printCourseInfo();
    }
}
